/*
package com.sino.operation.service.flow.service.impl;

import com.sino.operation.commons.commonEnum.StatusInfoEnum;
import com.sino.operation.service.flow.service.CompleteTaskService;
import com.sino.operation.util.RestTemplateUtils;
import com.sino.operation.vo.CompletePublicInfo;
import com.sino.operation.vo.CompleteVo;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

*/
/**
 * @ClassName CompleteTaskServiceImpl
 * @Description TOD
 * @Author 北陈
 * @Date 2021/10/8 14:08
 * @Version 1.0
 *//*

public class CompleteTaskServiceImpl implements CompleteTaskService {

    @Autowired(required = false)
    private RestTemplateUtils restTemplateUtils;

    @Override
    public String completeTask(CompleteVo completeVo) {

        CompletePublicInfo completePublicInfo = completeVo.getCompletePublicInfo();
        //region 提取公共信息进行判断
        //工作流id
        String flowId = completePublicInfo.getFlowId();
        //提交标志：如1-回退，2-条件通过，3-………………
        String completeMark = completePublicInfo.getCompleteMark();
        //岗位
        String post = completePublicInfo.getPost();
        //中心柜员号
        String tellerNo = completePublicInfo.getTellerNo();
        //中心柜员名字
        String tellerName = completePublicInfo.getTellerName();
        //根据提交标志，调用工作流，完成流程的推进或者回退等任务，同时更新消息到相应表格中
        if (StatusInfoEnum.COMPLETE_NORMAL.getCode().equals(completeMark)){
            //正常提交
        }else if (StatusInfoEnum.COMPLETE_BACK.getCode().equals(completeMark)){
            //回退
        }else if (StatusInfoEnum.COMPLETE_CONDITION.getCode().equals(completeMark)){
            //条件通过
        }

        //endregion
        return null;
    }
}
*/
